import service from "@/utils/request";
import { sheeppregnancyQuerys } from "./model";
const DEPT_BASE_URL = "/api/";

class sheepPregnancy {
   //种母妊检列表显示
static getList(data?: sheeppregnancyQuerys) {
    return service<any, sheeppregnancyQuerys>({
      url: `${DEPT_BASE_URL}Pregnancys/GetResults`,
      method: "post",
      data
    });
  }
   //种母妊检添加
  static async addpregnancy(data: any[]) {
  
    return service({
      url: `/api/Pregnancys/AddPregnancy`,
      method: "post",
      data,
    });
  }
   //种母妊检删除
  static async deletepregnancy(data: any) {
  
    return service({
      url: `/api/Pregnancys/DelePregnancy`,
      method: "post",
      data,
    });
  }
}
export default sheepPregnancy;